package com.shisfish.library.Inter;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.shisfish.core.Inter.IModelInter;
import com.shisfish.library.Model.BookSingle;

public interface IBookSingleInter extends IModelInter<BookSingle>{

	public int insertSingleMessage(BookSingle bookSingle);
	
	public List<BookSingle> selectBookSM(@Param("barCode") String barCode);
	
	public List<BookSingle> selectByISBN(@Param("isbn") String isbn);
	
	public int countByDate(@Param("choDate") String choDate);
	
	public List<Map<String, Object>> selectByDate(@Param("choDate") String choDate, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	public int countAdderLogByDate(@Param("choDate") String choDate);
	
	public List<Map<String, Object>> adderLogByDate(@Param("choDate") String choDate, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	public int countAdderLogByDateAdder(@Param("idadmin") String idadmin, @Param("choDate") String choDate);
	
	public List<Map<String, Object>> adderLogByDateAdder(@Param("idadmin") String idadmin, @Param("choDate") String choDate, @Param("currentPage") int currentPage, @Param("pageSize") int pageSize);
	
	/**
	 * @Author shisfish
	 * @Date 2016年1月12日 下午9:45:28
	 * @Descrition : 通过 barCode 查询书的信息
	 * @param barCode
	 * @return
	 */
	public List<Map<String, Object>> selectByBarCode(@Param("barCode") String barCode);
	
}
